//
// Created by lwj66 on 24-6-22.
//

#ifndef TEST_6_22_LIST_H
#define TEST_6_22_LIST_H

#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#define slType int

typedef struct List
{
    slType x;
    struct List* prev;
    struct List* next;
}list;

void listInit(list* pList);
void listPrint(list* pList);
void listClear(list** ppList);

void pushFront(list* pList, slType x);
void pushBack(list* pList, slType x);
void popFront(list* pList);
void popBack(list* pList);

void insertAT(list* pos, slType x);
void removeAT(list* pos);

#endif//TEST_6_22_LIST_H
